package io.renren.modules.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.modules.sys.entity.Tenant;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface TenantService extends IService<Tenant> {
    Tenant getTenant(long id)throws Exception ;

    List<Tenant> getTenant()throws Exception ;

    List<Tenant> select(String loginName, int offset, int rows)throws Exception ;
    Long countTenant(String loginName)throws Exception ;

    int insertTenant(String beanJson, HttpServletRequest request)throws Exception ;

    int updateTenant(String beanJson, Long id, HttpServletRequest request)throws Exception ;

    int deleteTenant(Long id, HttpServletRequest request)throws Exception ;
    int batchDeleteTenant(String ids, HttpServletRequest request)throws Exception ;
    int checkIsNameExist(Long id, String name)throws Exception ;
    Tenant getTenantByTenantId(long tenantId) ;
}
